package com.blog.contoller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by youpengfei on 15/1/12.
 */
@Controller
@RequestMapping("blog")
public class BlogController {
    @RequestMapping(method = RequestMethod.GET,value = "addPost")
    public String addPost(){
        return "add_post";
    }

    @RequestMapping(method = RequestMethod.POST,value = "addPost")
    public String addPost(Object page){
        return "add_post";
    }

}
